package com.jsmile.cloud.msgcenter.msg.listener;

import org.springframework.context.event.EventListener;
import org.springframework.core.annotation.Order;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

import com.jsmile.cloud.msgcenter.msg.event.NotifyCreateEvent;

import lombok.extern.slf4j.Slf4j;

/**
 * 消息创建--消息通知事件
 */
@Slf4j
@Component
public class NotifyCreateListener {

    @Async
    @Order
    @EventListener(NotifyCreateEvent.class)
    public void orderStatusChange(NotifyCreateEvent event) {
        log.info("消息通知事件：{}", event.getMsNotify());
    }

}
